﻿using KwaiXiaoDian.Entity.DO;
using KwaiXiaoDian.Entity.VO.GroupLeader;
using SSharing.Frameworks.NetCore.Common.Results;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KwaiXiaoDian.IService
{
    /// <summary>
    /// 团长service
    /// </summary>
    public interface IGroupLeaderService : IBaseService<TGroupLeader>
    {
        /// <summary>
        /// 同步团长信息
        /// </summary>
        /// <returns></returns>
        bool Sync();

        /// <summary>
        /// 新增团长
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Tuple<bool, string> Add(AddLeaderRequest request, long userId);

        /// <summary>
        /// 禁用团长
        /// </summary>
        /// <param name="request"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Tuple<bool, string> Disable(DisableLeaderRequest request, long userId);

        /// <summary>
        /// 获取团长列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        IPagingResult<Leader> GetPagingLeaders(GetPagingLeadersRequest request);

    }
}
